package Demo;

public class Compute {
    public static void main(String[] args) {
        Circle c = new Circle();
        System.out.println(c.all(5,0));
        Rectangle re = new Rectangle();
        System.out.println(re.all(4,5));
    }
}
abstract class Shape{
    public abstract int all(int x,int y);
}
class Circle extends Shape {
    @Override
    public int all(int r,int y) {
        return (int) (Math.PI*r);
    }
}
class Rectangle extends Shape{

    @Override
    public int all(int x, int y) {
        return x * y;
    }
}